<?php

namespace App\model\panyuan;

use App\model\Workshop;
use Illuminate\Database\Eloquent\Model;

/**
 * App\model\panyuan\WorkshopOverdue
 *
 * @property int $id
 * @property int|null $is_updated
 * @property int|null $is_shenhe
 * @property string|null $code
 * @property int|null $role_id
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property int|null $workshop_id
 * @property int|null $user_id
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\panyuan\WorkshopOverdue newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\panyuan\WorkshopOverdue newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\panyuan\WorkshopOverdue query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\panyuan\WorkshopOverdue whereCode($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\panyuan\WorkshopOverdue whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\panyuan\WorkshopOverdue whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\panyuan\WorkshopOverdue whereIsShenhe($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\panyuan\WorkshopOverdue whereIsUpdated($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\panyuan\WorkshopOverdue whereRoleId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\panyuan\WorkshopOverdue whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\panyuan\WorkshopOverdue whereUserId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\panyuan\WorkshopOverdue whereWorkshopId($value)
 * @mixin \Eloquent
 * @property string|null $overdue_time
 * @property-read \App\model\Workshop|null $workshop
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\panyuan\WorkshopOverdue whereOverdueTime($value)
 */
class WorkshopOverdue extends Model
{
    const NO_UPDATED=0;
    const  UPDATED=1;

    const NO_SHENHE=0;
    const  SHENHE=1;



    protected $table='workshop_overdue';
    public function workshop(){
        return $this->belongsTo(Workshop::class,'workshop_id');
    }
}
